package com.eastseeway.radioproject.main;

public class DeviceStatus {

    private boolean isDetectingHandles;
    private boolean isPressureHandleOnline;
    private boolean isNPressureHandleOnline;

    public DeviceStatus(boolean isDetectingHandles, boolean isPressureHandleOnline, boolean isNPressureHandleOnline) {
        this.isDetectingHandles = isDetectingHandles;
        this.isPressureHandleOnline = isPressureHandleOnline;
        this.isNPressureHandleOnline = isNPressureHandleOnline;
    }

    public boolean isDetectingHandles() {
        return isDetectingHandles;
    }

    public void setDetectingHandles(boolean detectingHandles) {
        isDetectingHandles = detectingHandles;
    }

    public boolean isPressureHandleOnline() {
        return isPressureHandleOnline;
    }

    public void setPressureHandleOnline(boolean pressureHandleOnline) {
        isPressureHandleOnline = pressureHandleOnline;
    }

    public boolean isNPressureHandleOnline() {
        return isNPressureHandleOnline;
    }

    public void setNPressureHandleOnline(boolean NPressureHandleOnline) {
        isNPressureHandleOnline = NPressureHandleOnline;
    }

    public boolean isAllHandleOffline()
    {
        return !isPressureHandleOnline && !isNPressureHandleOnline;
    }
}
